package com.aaa.system.service.impl;

import com.aaa.core.entity.AclPermission;
import com.aaa.core.entity.Results;
import com.aaa.system.dao.AclPermissionDao;
import com.aaa.system.service.AclPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：ludi（206913808@qq.com）
 * @date ：Created in 2022/12/2 11:23
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class AclPermissionServiceImpl implements AclPermissionService {

    @Autowired
    private AclPermissionDao permissionDao;
    @Override
    public Results findByUserId(Long userid) {
        List<AclPermission> aclPermissions = permissionDao.selectByUserid(userid);
        return new Results(2000,"查询成功",aclPermissions);
    }
}